﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ShowTeacher : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		int nID = 0;
		//ImageFileComponent clsComp = new ImageFileComponent();
		//ImageFile clsImageFile = new ImageFile();
		PX.Teacher.TeacherComponent clsTeacherComp = new PX.Teacher.TeacherComponent();
		PX.Teacher.Teacher clsTeacher = new PX.Teacher.Teacher();

		nID = Convert.ToInt32(Request.QueryString["FileID"].ToString());

		//clsComp.GetOneByID(nID, clsImageFile);
		//clsImageFile = (ImageFile)clsComp.GetOneByID(nID);
		//labTitle.Text = clsImageFile.Name;

		clsTeacher = (PX.Teacher.Teacher)clsTeacherComp.GetOneByID(nID);

		idImage.ImageUrl = "~/ShowImage.aspx?FileID=" + clsTeacher.ImageID.ToString();
		idImage.Attributes.Add("onload", "DrawImage(this)");


		//idContent.Attributes.Add("src", "ShowContent.aspx?FileID=" + nID.ToString());
		idContent.Attributes.Add("src", "ShowImageFile.aspx?FileID=" + clsTeacher.IntroductionID.ToString());
		idContent.Attributes.Add("onload", "iFrameHeight('" + idContent.ClientID.ToString() + "')");
	}
}
